package com.reger.easemob.model;

import java.io.Serializable;

public class TokenClient implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private final String grant_type;
	private final String client_id;
	private final String client_secret;

	public TokenClient( String client_id, String client_secret) {
		super();
		this.grant_type = "client_credentials";
		this.client_id = client_id;
		this.client_secret = client_secret;
	}

	public TokenClient(String grant_type, String client_id, String client_secret) {
		super();
		this.grant_type = grant_type;
		this.client_id = client_id;
		this.client_secret = client_secret;
	}

	public String getGrant_type() {
		return grant_type;
	}

	public String getClient_id() {
		return client_id;
	}

	public String getClient_secret() {
		return client_secret;
	}

	@Override
	public String toString() {
		return "TokenClient [grant_type=" + grant_type + ", client_id=" + client_id + ", client_secret=" + client_secret
				+ "]";
	}
}